//
//  UIImage+EXtension.h
//  BSBuDeJie
//
//  Created by monkey on 2018/12/10.
//  Copyright © 2018 itcast. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIImage (EXtension)


/**
 创建没有渲染的图片

 @param imageName 图片名称
 @return UIImage
 */
+ (UIImage *)originalImageWithImageName:(NSString *)imageName;
- (UIImage *)originalImage;


/**
 创建不拉伸的图片

 @param imageName 图片mingc
 @return UIImage
 */
+ (UIImage *)stretchableImageWithImageName:(NSString *)imageName;
- (UIImage *)stretchableImage;

/**
 缩放后图片宽度

 @param width 缩放后图片宽度
 */
- (void)scaleToWidth:(CGFloat)width completion:(void(^)(UIImage *))completion;

@end

NS_ASSUME_NONNULL_END
